package cn.com.springsource.ioc.differentScope;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;



public class ContextApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(Spring.class);
        for (int i = 0; i < 2; i++) {
            IndexService indexService = (IndexService) context.getBean("indexService");



        }
    }
}
